package com.ssm.subject.infra.basic.service;

import com.ssm.subject.infra.basic.entity.SubjectCategory;

import java.util.List;


/**
 * 题目分类(SubjectCategory)表服务接口
 *
 * @author makejava
 * @since 2024-11-21 17:39:20
 */
public interface SubjectCategoryService {

    /**
     * 新增分类
     *
     * @param subjectCategory 实例对象
     * @return 实例对象
     */
    int insert(SubjectCategory subjectCategory);

    /**
     * 更新分类
     *
     * @param subjectCategory 实例对象
     * @return 实例对象
     */
    int update(SubjectCategory subjectCategory);

    /**
     * 查询分类
     * @param subjectCategory
     * @return
     */
    List<SubjectCategory> queryCategory(SubjectCategory subjectCategory);

    SubjectCategory queryById(Long categoryId);

    /**
     * 查询大分类下的题目数量
     * @param id
     * @return
     */
    Integer querySubjectCount(Long id);
}
